/**
 * Progetto PRAISED.
 * 14/dic/2010
 */
package it.uniroma3.dia.praised.pubmed.model;

import java.net.URL;
import java.util.List;
import java.util.Map;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * Classe che modella il singolo articolo scientifico
 * 
 * @author Accosta Augusto
 * @author Lopez Elisabetta
 *
 */

@XStreamAlias(value="article")
public class Article {
	
	@XStreamAsAttribute
	private String PMCID;
	private String title;
	private String authors;
	private Map<String, URL> urlMap;
	private List<Section> sections;
	
	
	/**
	 * @return the PMCID
	 */
	public String getPMCID() {
		return this.PMCID;
	}
	
	/**
	 * @param PMCID the PMCID to set
	 */
	public void setPMCID(String PMCID) {
		this.PMCID = PMCID;
	}
	
	/**
	 * @return the title
	 */
	public String getTitleo() {
		return this.title;
	}
	
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	
	/**
	 * @return the authors
	 */
	public String getAuthors() {
		return this.authors;
	}
	
	/**
	 * @param authors the authors to set
	 */
	public void setAuthors(String authors) {
		this.authors = authors;
	}
	
	/**
	 * @return the sections
	 */
	public List<Section> getSections() {
		return this.sections;
	}
	
	/**
	 * @param sections the sections to set
	 */
	public void setSezioni(List<Section> sections) {
		this.sections = sections;
	}

	/**
	 * @param urlMap the urlMap to set
	 */
	public void setUrlMap(Map<String, URL> urlMap) {
		this.urlMap = urlMap;
	}
	
	/**
	 * @return the urlMap
	 */
	public Map<String, URL> getUrlMap() {
		return this.urlMap;
	}
	
	@Override
	public String toString() {
		return this.getPMCID() + "\n" + this.getTitleo() + "\n" + this.getAuthors() + "\n" + this.getUrlMap();
	}
	
}
